﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace EmptoolWebApp.Models
{
    public class CompanyViewModel : BaseViewModel
    {

        public CompanyViewModel() { }

        public CompanyViewModel(Entities.CompanyEntity e) : base(e)
        {
            this.CompanyName = e.CompanyName;
        }

        [Required]
        [Display(Name = "Company Name")]
        public string CompanyName { get; set; }
    }

    public class CompanyListViewModel
    {
        //public List<EmptoolWebApp.Entities.CompanyEntity> CompanyEntityList { get; set; }
        //public List<Microsoft.WindowsAzure.Storage.Table.DynamicTableEntity> CompanyEntityList { get; set; }
        public List<EmptoolWebApp.Entities.CompanyEntity> CompanyEntityList { get; set; }
    }
    
}